import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/order",
    meta: {
        title: "订单管理",
        roles: ["order"],
        icon: "el-icon-s-shop"
    },
    component: Layout,
    redirect: "/order/group",
    name: "order",
    children: [
        {
            path: "online",
            meta: {
                title: "在线订单",
                roles: ["order:online"],
                icon: "el-icon-tickets"
            },
            component: () =>
                import("@/views/models/order/online"),
            name: "OnlineOrder"
        },
        {
            path: "skuConsum",
            meta: {
                title: "开课记录",
                roles: ["order:consum:sku"],
                icon: "el-icon-date"
            },
            component: () => import("@/views/models/order/skuConsum.vue"),
            name: "SkuConsumList",
        },
        {
            path: "codeConsum",
            meta: {
                title: "提码记录",
                roles: ["order:consum:code"],
                icon: "el-icon-s-ticket"
            },
            component: () => import("@/views/models/order/consumCode.vue"),
            name: "CodeConsumList",
        },
        {
            path: "productCode",
            meta: {
                title: "激活码管理",
                roles: ["order:productCode"],
                icon: "el-icon-s-goods"
            },
            component: () =>
                import("@/views/models/order/productCode"),
            name: "productCode"
        }
    ]
}
